package com.example.teamtribe.database;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.DataSupport;

public class AcApply extends DataSupport implements Parcelable {

    private int id;
    private String name;
    private int teamId;
    private int userId;
    private String phone;
    private String date;
    private String place;
    private String sponsor;
    private String sPhone;
    private String content;

    public AcApply() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getSponsor() {
        return sponsor;
    }

    public void setSponsor(String sponsor) {
        this.sponsor = sponsor;
    }

    public String getsPhone() {
        return sPhone;
    }

    public void setsPhone(String sPhone) {
        this.sPhone = sPhone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeInt(this.teamId);
        dest.writeInt(this.userId);
        dest.writeString(this.phone);
        dest.writeString(this.date);
        dest.writeString(this.place);
        dest.writeString(this.sponsor);
        dest.writeString(this.sPhone);
        dest.writeString(this.content);
    }

    protected AcApply(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.teamId = in.readInt();
        this.userId = in.readInt();
        this.phone = in.readString();
        this.date = in.readString();
        this.place = in.readString();
        this.sponsor = in.readString();
        this.sPhone = in.readString();
        this.content = in.readString();
    }

    public static final Parcelable.Creator<AcApply> CREATOR = new Parcelable.Creator<AcApply>() {
        @Override
        public AcApply createFromParcel(Parcel source) {
            return new AcApply(source);
        }

        @Override
        public AcApply[] newArray(int size) {
            return new AcApply[size];
        }
    };
}
